package com.lmt_14;

import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.InputStreamReader;
import java.io.Reader;

public class Test1 {
    public static void main(String[] args) {
        try (
                FileInputStream inputStream = new FileInputStream("src/com/lmt_14/1.txt");
                Reader re = new InputStreamReader(inputStream,"GBK");
                BufferedReader reader= new BufferedReader(re);
        ){
                String line = null;
                while ((line = reader.readLine())!= null){
                    System.out.println(line);
                }
        }catch (Exception e){
            e.printStackTrace();
        }
    }
}
